package com.ling.sbbyyds.interaction.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel(description = "社区帖子")
public class CommunityPostsPo {

    @ApiModelProperty("社区帖子id")
    private Long postsId;

    @ApiModelProperty("用户id")
    private Long userId;

    @NotEmpty(message = "标题不能为空")
    @ApiModelProperty("帖子标题")
    private String title;

    @ApiModelProperty("帖子内容")
    private String content;

    @ApiModelProperty("搜索内容：综合搜索")
    private String searchInfo;

    @ApiModelProperty("话题类型id（对应分类）")
    private Long talkTypeId;

    @ApiModelProperty("话题id")
    private Long talkId;

    @ApiModelProperty("浏览数")
    private Integer viewNum;

    @ApiModelProperty("发布时间")
    private Long releaseTime;

    @ApiModelProperty("是否删除 0.正常  1.已经删除")
    private Integer isDel = 0;

    @ApiModelProperty("帖子状态  0.正常  1.违规")
    private Integer state = 0;

    @ApiModelProperty("帖子权限  0.公开  1.仅自己可见")
    private Integer isPrivate = 0;

    @ApiModelProperty("base64照片")
    private List<String> base64Images;
}

